package cn.csdj.sism.service;

import cn.csdj.sism.pojo.Accommodation;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * Accommodation业务层
 * @author 汤思威
 * 2023/4/7
 */
public interface AccommodationService {
    /**
     * 添加
     * @param accommodation
     * @return
     */
    public int insert(Accommodation accommodation);

    /**
     * 按id删除
     * @param id
     * @return
     */
    public int deleteById(Integer id);

    /**
     * 修改
     * @param accommodation
     * @return
     */
    public int update(Accommodation accommodation);

    /**
     * 按id查询
     * @param id
     * @return
     */
    public Accommodation selectById(Integer id);

    /**
     * 查询全部
     * @return
     */
    public List<Accommodation> selectAll();

    /**
     * 分页查询
     * @param current
     * @param PageSize
     * @return
     */
    public IPage<Accommodation> selectPages(Integer current,Integer PageSize);
}
